<template>
  <el-dialog
    :title="view === 'cheack'? '审核地址url': ''"
    :visible="true"
    custom-class="CheackUrlWrapper"
    :before-close="closeDialog"
    >
    <vue-body>
      <el-input v-model="CheackStr" readonly="readonly"></el-input>
    </vue-body>
    <div slot="footer" class="dialog-footer">
      <el-button @click="closeDialog">取 消</el-button>
    </div>
  </el-dialog>
</template>

<script>
import { queryMechanism} from "@/services/institution";
import { RequestError } from "@/services/errors";
import { mapActions } from "vuex";
// import {login} from '@/services/login'
// import menuModules from '@/router/modules.json'
export default {
  name: "edit-role",
  data () {
    return {
      loading: false,
      institutionNo:"",
      checkNo:"",
      dialogFormVisible: false,
      CheackStr:""
    }
  },
  props: {
    view: {
      type: String,
      default: "detail"
    }
  },
  methods: {
    ...mapActions(["setUserInfo"]),
    closeDialog() {
      this.$emit("close");
    },
    CheackUrl(){
    	//http://ecshoptest.ebj.ebjcloud.com/ecshop/req/index.html#/isCheack
    	//http://ecshop.1bpmedia.cn/ecshop/req/index.html#/isCheack
    	//http://localhost:8089/#/isCheack
  		this.CheackStr = "http://oneshop.1bpcafe.cn/ecshop/req/index.html#/isCheack?institutionNo="+this.institutionNo+"&checkNo="+this.checkNo
    }
  },
  mounted() {
  	
  },
  filters: {
      state (value) {
        return {"01": '正常', "02": '禁用'}[value]
      }
  },
};
</script>
<style>
.el-select {
  width: 100%;
}
.CheackUrlWrapper{
  width: 60%;
  margin-top: 8%;
}
</style>
